package com.red.star.wechat.data.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * @Author: WangYaHui
 * @Description:商场品类
 * @Date: Created in 13:30 2018/9/26
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_mall_cate")
public class MallCate extends BaseEntity {
    /**
     * 商场编码
     */
    private String mallCode;
    /**
     * 品类id
     */
    private Integer cateId;
    /**
     * 排序
     */
    private Integer order;
    /**
     * 0 显示  1隐藏
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 品类名称
     */
    @Transient
    private String mainCate;
    /**
     * 关联内容
     */
    @Transient
    private String mainRelationContent;

    @Transient
    private String mainName;

    public MallCate(Integer cateId, String mainCate) {
        this.cateId = cateId;
        this.mainCate = mainCate;
    }
    @Transient
    private Integer mainOrder;

    @Transient
    private Integer mallId;


}
